equals
Returns true
if the arguments are equal to each other and false
otherwise.
Consequently, if both arguments are null
, true
is returned and if exactly one argument is null
,
false
is returned. Otherwise, equality is determined by using the equals method of the first argument.
Return
true
if the arguments are equal to each other and false
otherwise
Parameters
a
an object
b
an object to be compared with a
for equality